package com.ucenter.server.user.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.system.handle.model.ResponseFrame;
import com.ucenter.server.user.pojo.UserWebsite;

/**
 * user_website的Service
 * @author autoCode
 * @date 2018-11-29 15:15:25
 * @version V1.0.0
 */
@Component
public interface UserWebsiteService {
	
	/**
	 * 保存
	 * @param userWebsite
	 * @return
	 */
	public ResponseFrame save(UserWebsite userWebsite);
	
	/**
	 * 根据userId获取对象
	 * @param userId
	 * @return
	 */
	public UserWebsite get(String userId, String websiteId);

	/**
	 * 分页获取对象
	 * @param userWebsite
	 * @return
	 */
	public ResponseFrame pageQuery(UserWebsite userWebsite);
	
	/**
	 * 根据userId删除对象
	 * @param userId
	 * @param websiteId 
	 * @return
	 */
	public ResponseFrame delete(String userId, String websiteId);
	/**
	 * 根据用户编号获取授权站点列表
	 * @param userId
	 * @return
	 */
	public List<UserWebsite> findByUserId(String userId);

	public void deleteByUserId(String userId);
}